<?php

namespace App\Sdks\OceanEngine\Traits;

use App\Common\Tools\CustomException;

trait Site
{
    /**
     * @param $accountId
     * @param $siteId
     * @return mixed
     * 获取站点预览
     */
    public function getSitePreview($accountId, $siteId){
        $url = $this->getUrl('2/tools/site/preview/');

        $param = [
            'advertiser_id' => $accountId,
            'site_id' => $siteId,
        ];

        return $this->authRequest($url, $param, 'GET');
    }
}
